package cn.vcjf.weapp.api.active.entity;

import cn.vcjf.weapp.common.web.PageModel;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
    * 
    * </p>
 *
 * @author zhengzihang
 * @since 2018-09-28
 */
@TableName("vc_goods_setmeal")
public class GoodsSetmeal extends PageModel<GoodsSetmeal> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 套餐名称
     */
    private String setMealName;
    /**
     * 套餐总原价
     */
    private BigDecimal originalPrice;

    /**
     * 套餐(总)价格
     */
    private BigDecimal setMealPrice;

    /**
     * 套餐商品种类数量
     */
    private Integer setMealGoodsNum;

    /**
     * 套餐描述
     */
    private String setMealDes;

    /**
     * 套餐图片
     */
    private String setMealFilesId;

    /**
     * 套餐图文介绍图片
     */
    private String introduce;

    /**
     * 排序
     */
    private Integer sortNo;

    /**
     * 状态
     */
    private Integer status;
    /**
     * 套餐包含的商品
     */
    @TableField(exist = false)
    private List<GoodsSetmealDetail> goodsSetmealDetailList;

    public List<GoodsSetmealDetail> getGoodsSetmealDetailList() {
        return goodsSetmealDetailList;
    }

    public void setGoodsSetmealDetailList(List<GoodsSetmealDetail> goodsSetmealDetailList) {
        this.goodsSetmealDetailList = goodsSetmealDetailList;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getSetMealName() {
        return setMealName;
    }

    public void setSetMealName(String setMealName) {
        this.setMealName = setMealName;
    }
    public BigDecimal getSetMealPrice() {
        return setMealPrice;
    }

    public void setSetMealPrice(BigDecimal setMealPrice) {
        this.setMealPrice = setMealPrice;
    }
    public Integer getSetMealGoodsNum() {
        return setMealGoodsNum;
    }

    public void setSetMealGoodsNum(Integer setMealGoodsNum) {
        this.setMealGoodsNum = setMealGoodsNum;
    }
    public String getSetMealDes() {
        return setMealDes;
    }

    public void setSetMealDes(String setMealDes) {
        this.setMealDes = setMealDes;
    }
    public BigDecimal getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(BigDecimal originalPrice) {
        this.originalPrice = originalPrice;
    }
    public String getSetMealFilesId() {
        return setMealFilesId;
    }

    public void setSetMealFilesId(String setMealFilesId) {
        this.setMealFilesId = setMealFilesId;
    }
    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public void preInsert(){
        super.preInsert();
    }
    @Override
    public void preUpdate(){
        super.preInsert();
    }
    @Override
    public String toString() {
        return "GoodsSetmeal{" +
        "id=" + id +
        ", setMealName=" + setMealName +
        ", setMealPrice=" + setMealPrice +
        ", setMealGoodsNum=" + setMealGoodsNum +
        ", setMealDes=" + setMealDes +
        ", originalPrice=" + originalPrice +
        ", setMealFilesId=" + setMealFilesId +
        ", sortNo=" + sortNo +
        ", status=" + status +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", updateUser=" + updateUser +
        ", updateTime=" + updateTime +
        ", deleteFlag=" + deleteFlag +
        ", sysUserId=" + sysUserId +
        "}";
    }
}
